home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-25 | 3.2 KB | 78 lines | [TEXT/R*ch] |
- Sort Lines External
- ===================
- version 2.00
- Copyright © 1993
- by Alex Maluta
-
-
- “Sort Lines Ext” is a BBEdit extension which will sort lines in a textfile.
- The extension should work with BBEdit versions 2.1 and higher. To install,
- place the “Sort Lines Ext” file into the “BBEdit Extensions” folder.
-
- To use the extension, select the lines you want sorted and then choose “Sort
- Lines…” from the Extensions menu. There are three ways to sort the selection:
-
- Whole lines
- -----------
- This method will consider the contents of the entire line when sorting.
-
- Character columns
- -----------------
- This method sorts entire lines, but only considers the characters between the
- specified columns when comparing lines. This options is useful for sorting a
- table where columns are at fixed character positions. To sort on the first two
- characters of a line, specify “columns #1 through #2”.
-
- The “Sort Lines” extension has a shortcut which makes it easy to specify which
- columns you want sorted. When selecting the lines to be sorted, start the
- selection just before the first column on the first line and extend the
- selection just past the last column on the last line to be sorted. When you
- select the “Sort Lines” command the column numbers will automatically be filled
- in for you.
-
- As an example, I find this option extremely useful in sorting the output from
- Think Pascal’s procedure profiler. I open the output file in BBEdit; click to
- the right of the last digit in the “Total Time” column; scroll down to the
- bottom of the file; shift+click just to the right of the last digit in the “%
- Time” column; select “Sort Lines” and click on the “Character columns” option.
- The profiler output is sorted by the “% Time” column.
-
- Tab-delimited column
- --------------------
- This method also sorts entire lines, but only considers the characters of the
- tab-delimited column you specify. Characters up to the first tab are
- considered column #1, the characters between the first and second tab are
- considered column #2 and so on.
-
-
- In each case, you may also check the “Descending order” checkbox which will
- reverse the sort order.
-
- “Sort Lines” compares lines as plain text (it uses IUMagString). This means
- that if you try to sort a column of numbers, “Sort Lines” will not work
- properly unless either all the numbers have the same number of characters, or
- the numbers are right-justified and padded on the left with leading spaces.
- If you need true numeric sorting, drop me a line and I’ll consider adding it
- for a future release.
-
-
- “Sort Lines Ext” is freeware, but I retain all rights to the program. You may
- make and distribute copies of “Sort Lines Ext”, provided you include this
- documentation. However, you may not sell or distribute “Sort Lines Ext” for
- profit, nor include it with other software which is sold or distributed for
- profit, without my written consent.
-
- If you have any comments, feature requests or bug reports, I’d be interested in
- hearing from you at one of the E-Mail addresses below.
-
- Enjoy!
-
- Alex Maluta
-
- Compuserve: 73457,1767
- America Online: AlexMaluta
- AppleLink: AlexM
-
- 6/20/93
-
-